﻿using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Runtime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _01环境测试
{
    public class Class1
    {
        [CommandMethod("TestDemo")]
        public void TestDemo()
        {
            //声明命令行对象
            Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
            //向命令行输出一段文字
            ed.WriteMessage("我是来学习Autocad 二次开发的");
        }
    }
}
